<template>
  <div id="app" class="flex-row">
    <div id="left-content" class="flex-item-0 flex-column">
      <useravatar/>
      <div class="ui large left icon input">
        <input id="search" type="text" placeholder="搜索"
               style="background-color: #26292e;">
        <i class="green search icon"></i>
      </div>
      <ul class="horizontal_tab">
        <li>
          <i class="icon big iconfont icon-help purple"></i>
        </li>
        <div class="vertical_divider"></div>
        <li>
          <i class="icon big talk yellow"></i>
        </li>
        <div class="vertical_divider"></div>
        <li>
          <i class="icon big iconfont icon-map brown"></i>
        </li>
      </ul>
      <div class="ui divider" style="margin: 5px 0px;"/>
      <div class="ui big top aligned divided selection animated list" style="margin-top: 0px;overflow-y: auto; ">
        <div class="item" v-for="contact in contacts">
          <img class="ui w50 round image" src="http://www.semantic-ui.cn/images/avatar2/small/rachel.png">
          <div class="content">
            <a class="header" style="color: #dff0ff;">{{contact.name}}</a>
            <div class="description" style="color: #cdcdcd;">{{contact.lastMsg}}</div>
          </div>
        </div>
      </div>
    </div>
    <div id="right-content" class="flex-item-1">
      <chatpage/>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'app',
    data: function () {
      return {
        contacts: [
          {
            icon: 'aa',
            name: 'Andrewlu',
            lastMsg: 'SSSSSSSSS'
          },
          {
            icon: 'aa',
            name: 'Andrewlu',
            lastMsg: 'SSSSSSSSS'
          },
          {
            icon: 'aa',
            name: 'Andrewlu',
            lastMsg: 'SSSSSSSSS'
          },
          {
            icon: 'aa',
            name: 'Andrewlu',
            lastMsg: 'SSSSSSSSS'
          },
          {
            icon: 'aa',
            name: 'Andrewlu',
            lastMsg: 'SSSSSSSSS'
          }
        ]
      }
    }
  }

</script>

<style>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #e0e0e0;
    margin: 0 auto;
    height: 100%;
    border-radius: 4px;
    width: 1024px;
    height: 760px;
    overflow: hidden;
  }

  #left-content {
    width: 350px;
    background-color: #2e3238;
    padding-top: 22px;
    padding-left: 22px;
    padding-right: 22px;
  }

  #right-content {
    width: 100%;
    background-color: #eeeeee;
    padding: 22px;
  }

  .list > .item {
    margin: 15px 0px;
    height: auto;
  }
</style>

